<?php
	session_start();
	header("Content-type: text/html; charset=utf-8");
	if(!isset($_SESSION['ID'])){
		echo '<script type="text/javascript">alert("请先登录！");parent.parent.location.href="login.php";</script>';
		exit();
	}
	else {
		if($_SESSION['ID']<=0){
			echo '<script type="text/javascript">alert("请先登录！");parent.parent.location.href="login.php";</script>';
			exit();
		}
	}